package com.sie.mapper;

import com.sie.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UsersMapper {
    List<Users> findAll();

    /**
     * 根据用户名密码查询
     * @param username
     * @param password
     * @return
     */
    Users findByNameAndPwd(@Param("username") String username,@Param("password") String password);
}
